package com.example.eurekaclientconsume.controller;

import com.example.eurekaclientconsume.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping
public class TestController {
    @Autowired
    private HelloService helloService;

    @RequestMapping("/test")
    public String test(@RequestParam String name) {
        return helloService.hiService(name);
    }
}
